<!DOCTYPE HTML>
<html>
<head>
<title>Canvas For All</title>
<meta name="viewport"
	content="maximum-scale=1.0,width=device-width,initial-scale=1.0,user-scalable=0" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css"
	href="styles/jquery.mobile-1.3.2.css" />
<link rel="stylesheet" type="text/css" href="styles/app.css" />
<script type="text/javascript" charset="utf-8"
	src="scripts/dao/bd_mobile.js"></script>
</head>

<body>
	<div data-role="page">
		<!-- Header da aplicação -->
		<div data-role="header" id="appHeader" data-position="fixed">
			<a href="#notifier-panel" data-inline="true" data-icon="info"
				data-iconpos="notext">Notifications</a>
			<h1>Canvas for All</h1>
			<a href="#menu-panel" data-inline="true" data-icon="bars"
				data-iconpos="notext">Menu</a>
		</div>
		<!-- /header -->
		<!--  Conteúdo da página principal -->
		<div data-role="content">
			<ul data-role="listview" data-filter="true" data-filter-placeholder="Pesquisar por nome..." data-inset="true">
				<li><a href="javascript:loadCanvas();">Canvas For All</a></li>
				<li><a href="#">Frame For Canvas</a></li>
				<li><a href="#">Startups Developer</a></li>
				<li><a href="#">Designers 4all</a></li>
			</ul>
		</div>
		<!-- /content -->
		
		<!-- Painel de notificações -->
		<div data-role="panel" id="notifier-panel" data-position="left"
			data-display="overlay">
			<table data-role="table" data-mode="reflow"
				class="ui-responsive table-stroke">
				<thead>
					<tr>
						<th></th>
						<th></th>
					</tr>
				</thead>
				<tbody>					
					<tr>
						<td><img src="http://placehold.it/50x50" alt="Avatar" /></td>
						<td><a href="#"> 
							<span class="notifier-title">Leidson Dias</span>
							<p class="notifier-content">
								Adicionou um post-it ao quadrante <b>Valores Chaves</b> no <b>projeto:</b><i>Canvas for All</i>
							</p> 
							<span class="notifier-date">2 dias atrás</span>
						</a></td>
					</tr>
				</tbody>
			</table>
		</div>
		<!-- /notifier panel -->
		<!-- Painel do Menu -->
		<div data-role="panel" id="menu-panel" data-position="right"
			data-display="overlay">
			<ul data-role="listview" data-inset="true" data-divider-theme="a">
				<li data-role="list-divider">Projetos</li>
				<li><a href="#">Meus</a></li>
				<li><a href="#">Participo</a></li>
				<li data-role="list-divider">Perfil</li>
				<li><a href="#">Ajuda</a></li>
				<li><a href="#">Configurações</a></li>
				<li><a href="#">Sair</a></li>
			</ul>
		</div>
		<!-- /menu panel -->
	</div>


	<script type="text/javascript" charset="utf-8"
		src="scripts/util/jquery-1.10.2.min.js"></script>
	<script type="text/javascript" charset="utf-8"
		src="scripts/util/jquery.mobile-1.3.2.js"></script>
	<script type="text/javascript" charset="utf-8"
		src="scripts/util/cordova.js"></script>
	<script type="text/javascript">
		function loadCanvas() {
			console.log('Load Canvas');
			/* window.open('pages/canvas.html'); */
			window.parent.location.href = "pages/canvas.html";
		};
	</script>
</body>
</html>